package hello;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 使用＠WebServlet实现了，自动注册。
 */
@WebServlet(name = "ServletNotationReg", urlPatterns = "/notation_reg")
public class ServletNotationReg extends HttpServlet {
    public ServletNotationReg(){
        int i = 0;
    }
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.getWriter().print("ServletNotationReg.hello");
    }
}
